public override void Do() { base.Do(); tutorialFingerHud = UIManager.Instance().GetTutorialFinger(); tutorialFingerHud.ShowJoystick(); doing = true; }
public override void Do() { base.Do(); tutorialFingerHud = GameController.instance.uiManager.GetTutorialFinger(); tutorialFingerHud.ShowJoystick(); doing = true; }
public override void Do() { base.Do(); tutorialFingerHud = GameController.instance.uiManager.GetTutorialFinger(); tutorialFingerHud.ShowAttack(); doing = true; healthable = objectTohit.GetComponent <IHealthable>(); healthable.OnHealthChange += OnGetHit; }
public void RemoveFinger(string fingerId) { if (Fingers.ContainsKey(fingerId)) { TutorialFinger finger = Fingers[fingerId]; if (finger && finger.gameObject) { Destroy(finger.gameObject); } Fingers.Remove(fingerId); } }
public TutorialFinger CreateFinger(Transform parent, TutorialFingerData fingerData) { if (Fingers.ContainsKey(fingerData.Id)) { RemoveFinger(fingerData.Id); } GameObject fingerObj = GameObject.Instantiate(Services.ResourceService.Prefabs.GetPrefab("finger"), parent, false); TutorialFinger finger = fingerObj.GetComponent <TutorialFinger>(); finger.Setup(fingerData); Fingers.Add(finger.Data.Id, finger); return(finger); }