void Start() { anim = GetComponent <Animator> (); unitScript = GetComponent <Unit> (); chaseScript = GetComponent <ChasingPlayer> (); fieldScript = GetComponent <FieldOfView> (); }
void Start() { anim = GetComponent <Animator> (); unitScript = GetComponent <Unit> (); chaseScript = GetComponent <ChasingPlayer> (); fieldScript = GetComponent <FieldOfView> (); mAudioSource = GetComponent <AudioSource>(); Debug.Assert(mAudioSource != null); }
void Start() { viewMesh = new Mesh(); viewMesh.name = "View Mesh"; viewMeshFilter.mesh = viewMesh; StartCoroutine("FindTargetsWithDelay", .2f); unitScript = GetComponent <Unit> (); chasingScript = GetComponent <ChasingPlayer> (); originSpot = flashLight.color; if (!turnLight) { flashLight.enabled = false; } }
void Awake() { pinky = FindObjectOfType <ChasingPlayer>(); }