August 2018
Beginner
334 pages
10h 19m
English
This is a long class, so it is important to carefully follow these steps:
using UnityEngine;
using System.Collections;
public class AirHockeyRival : MonoBehaviour
{
// next steps
}
public GameObject puck; public GameObject paddle; public string goalWallTag = "GoalWall"; public string sideWallTag = "SideWall"; [Range(1, 10)] public int maxHits;
float puckWidth; Renderer puckMesh; Rigidbody puckBody; AgentBehaviour agent; Seek seek; Leave leave; AHRState state; bool hasAttacked;
Read now
Unlock full access