示例#1
0
 public override void Do()
 {
     base.Do();
     tutorialFingerHud = UIManager.Instance().GetTutorialFinger();
     tutorialFingerHud.ShowJoystick();
     doing = true;
 }
示例#2
0
 public override void Do()
 {
     base.Do();
     tutorialFingerHud = GameController.instance.uiManager.GetTutorialFinger();
     tutorialFingerHud.ShowJoystick();
     doing = true;
 }
示例#3
0
        public override void Do()
        {
            base.Do();
            tutorialFingerHud = GameController.instance.uiManager.GetTutorialFinger();
            tutorialFingerHud.ShowAttack();

            doing      = true;
            healthable = objectTohit.GetComponent <IHealthable>();
            healthable.OnHealthChange += OnGetHit;
        }
示例#4
0
 public void RemoveFinger(string fingerId)
 {
     if (Fingers.ContainsKey(fingerId))
     {
         TutorialFinger finger = Fingers[fingerId];
         if (finger && finger.gameObject)
         {
             Destroy(finger.gameObject);
         }
         Fingers.Remove(fingerId);
     }
 }
示例#5
0
        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);
        }