Example #1
0
    public bool Init(object context)
    {
        _heroCtrl = context as HeroController;
        if (_heroCtrl == null)
        {
            return(false);
        }
        _curWeapon = _heroCtrl.GetCurWeapon();

        return(true);
    }
Example #2
0
 public bool ReadyToPlay()
 {
     return(_heroCtrl.GetCurWeapon() != null && Input.GetKey(KeyCode.X));
 }