void Update()
        {
            _movementUtil.UpdateMySelf(_mobileInputController.Coordinate());
            _movementUtil.UpdateOpponentStatus();

            // You Enemy kill You So You Die!
            if (_damageUtil.IsAlive())
            {
                return;
            }
            if (_onceShow)
            {
                return;
            }

            Finish.SetActive(true);
            Finish.GetComponentInChildren <Text>().text  = "You Dead!";
            Finish.GetComponentInChildren <Text>().color = Color.white;
            _onceShow = true;
        }
Beispiel #2
0
 public void MoveEnemy(float x, float y)
 {
     _movementUtil.UpdateMySelf(new Vector2(x, y));
 }