public bool Init(object context) { _heroCtrl = context as HeroController; if (_heroCtrl == null) { return(false); } _curWeapon = _heroCtrl.GetCurWeapon(); return(true); }
public bool ReadyToPlay() { return(_heroCtrl.GetCurWeapon() != null && Input.GetKey(KeyCode.X)); }