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