예제 #1
0
 public void setup(int x, int y)
 {
     isDead = false;
     maxCounter = 150;
     counter = 0;
     behaviorCounter = 0;
     wizard = GameObject.Find ("Wizard").GetComponent<ScWizard> ();
 }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        softReset ();

        wizard = GameObject.Find ("Wizard").GetComponent<ScWizard> ();

        //Loads sprites for ghosts used below
        spr_blinky = Resources.Load <Sprite> ("Blinky");
        spr_pinky = Resources.Load <Sprite> ("Pinky");
        spr_inky = Resources.Load <Sprite> ("Inky");
        spr_clyde = Resources.Load <Sprite> ("Clyde");
    }
예제 #3
0
 // Use this for initialization
 public void findWizard()
 {
     wizard = GameObject.Find ("Wizard").GetComponent<ScWizard>();
 }