Exemplo n.º 1
0
 void Start()
 {
     anim        = GetComponent <Animator> ();
     unitScript  = GetComponent <Unit> ();
     chaseScript = GetComponent <ChasingPlayer> ();
     fieldScript = GetComponent <FieldOfView> ();
 }
Exemplo n.º 2
0
    void Start()
    {
        anim        = GetComponent <Animator> ();
        unitScript  = GetComponent <Unit> ();
        chaseScript = GetComponent <ChasingPlayer> ();
        fieldScript = GetComponent <FieldOfView> ();

        mAudioSource = GetComponent <AudioSource>();
        Debug.Assert(mAudioSource != null);
    }
Exemplo n.º 3
0
    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;
        }
    }
Exemplo n.º 4
0
 void Awake()
 {
     pinky = FindObjectOfType <ChasingPlayer>();
 }