예제 #1
0
    public void AddRobot(GameObject robotGameObject, Transform point)
    {
        combatManager.AddEntity(robotGameObject);

        RobotBehavior behavior = robotGameObject.GetComponentInChildren <RobotBehavior>();

        behavior.SetTarget(target);
        behavior.SetSpawnpoint(point);
        behavior.InitializeRobot(this);

        EnemyHealth health = robotGameObject.GetComponent <EnemyHealth>();

        health.InitializeRobot(this);
    }