// Start is called before the first frame update
        private void Start()
        {
            playerHP = this.GetComponent <PlayerHP>();

            robotAgent = this.GetComponent <RobotAgent>();

            enemyHP = robotAgent.Enemy.GetComponent <PlayerHP>();

            enemyAgent = robotAgent.Enemy.GetComponent <RobotAgent>();

            JudgeResult();
        }
Ejemplo n.º 2
0
 private void Start()
 {
     robotAgent = this.GetComponent <RobotAgent>();
 }