Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
private void SetEnemyOnPath(GameObject enemy) { Enemy e = enemy.GetComponent <Enemy>(); PathMovement pm = enemy.GetComponent <PathMovement>(); if (!pm) { Debug.LogError("PathMovement script does not attached to spawned enemy"); return; } pm.StartPathMovement(path, () => e.AchievedTarget()); }