Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     //dummy
     _Hp     = 20;
     _MaxHp  = 20;
     _Attack = 3;
     UISpawner.Spawn(gameObject, this);
     SetStates <BehaviourState>();
     _moveTo = transform.position;
     Debug.Log(NameGenerator.Generate());
     _player = GameObject.FindWithTag("Player").GetComponent <Player>();
 }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        _MaxHp  = 10;
        _Hp     = _MaxHp;
        _Attack = 2;

        //state初期化
        SetStates <BehaviourState>();
        EventManager.OnTouchBegin.AddListener(InputTouch);
        EventManager.OnTouchMove.AddListener(InputTouch);

        _moveTo = transform.position;
        UISpawner.Spawn(this.gameObject, this);
    }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        _MaxHp  = 10;
        _Hp     = _MaxHp;
        _Attack = 2;

        //state初期化
        SetStates <BehaviourState>();
        TouchManager.AddListener(EventTriggerType.PointerDown, InputTouch);
        TouchManager.AddListener(EventTriggerType.Drag, InputTouch);

        _moveTo = transform.position;
        UISpawner.Spawn(this.gameObject, this);
    }
Exemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     UISpawner.Spawn(this.gameObject, this);
     Init();
     _Hp = _MaxHp;
 }