Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        playerState      = PLAYERSTATE.IDLE;
        gridManager      = GameObject.FindWithTag("Game Overseer").GetComponent <GridManager>();
        currentIndex     = gridManager.PosToIndex(this.transform.position);
        currentCharacter = gridManager.GetComponent <SwapCharacter>();

        billySound = GameObject.FindWithTag("ShieldRobot").GetComponent <AudioSource>();
        mandySound = GameObject.FindWithTag("AgileRobot").GetComponent <AudioSource>();

        mandy = GameObject.FindWithTag("AgileRobot");
    }
Esempio n. 2
0
    void Start()
    {
        currentCharacter = GameObject.FindWithTag("Game Overseer").GetComponent <SwapCharacter>();

        if (this.transform.CompareTag("PressurePlate"))
        {
            pressureSource = this.transform.GetComponent <AudioSource>();
        }
        else if (this.transform.CompareTag("Switch"))
        {
            switchSource = this.transform.GetComponent <AudioSource>();
        }
    }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     gridManager = GameObject.FindWithTag("Game Overseer");
     swap        = gridManager.GetComponent <SwapCharacter>();
 }
Esempio n. 4
0
 // Use this for initialization
 void Start()
 {
     gridManager      = GameObject.FindWithTag("Game Overseer").GetComponent <GridManager>();
     currentCharacter = GameObject.FindWithTag("Game Overseer").GetComponent <SwapCharacter>();
 }
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     billySound       = GameObject.FindWithTag("ShieldRobot").GetComponent <AudioSource>();
     mandySound       = GameObject.FindWithTag("AgileRobot").GetComponent <AudioSource>();
     currentCharacter = GameObject.FindWithTag("Game Overseer").GetComponent <SwapCharacter>();
 }