示例#1
0
    public void Awake()
    {
        playerCtrl = GameObject.FindWithTag("Player").GetComponent <PlayerControl>();
        uiCtrl     = GameObject.FindObjectOfType(typeof(UserInterfaceControl)) as UserInterfaceControl;

        kills             = 0;
        gunBonusFlag      = false;
        gunBonusTime      = 0;
        QuantityOfZombies = 0;
        GameOver          = false;
    }
示例#2
0
 private void Start()
 {
     rounds = MaxRounds;
     uiCtrl = GameObject.FindObjectOfType(typeof(UserInterfaceControl)) as UserInterfaceControl;
 }