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

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