コード例 #1
0
        void Start()
        {
            stats = GetComponentInParent <EnemyStats>();
            rb    = GetComponentInParent <Rigidbody>();

            stats.movementClock.ClockEnded += OnShouldMove;

            currentNode      = stats.gameObject.transform.position;
            currentDirection = MouchouDirection.Down;
        }
コード例 #2
0
 private void Start()
 {
     Stats = new EnemyStats(
         damage: 10,
         maxHealth: 1000,
         speedFactor: 33
         );
     currentHealth = Stats.MaxHealth;
     UpdateHealthSlider();
 }
コード例 #3
0
        // Start is called before the first frame update
        void Start()
        {
            stats = GetComponentInParent <EnemyStats>();

            stats.attackClock.ClockEnded += OnShouldAttack;
        }