// 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();
        }
예제 #2
0
 private void Start()
 {
     robotAgent = this.GetComponent <RobotAgent>();
 }