예제 #1
0
    protected override void Start()
    {
        base.Start();

        foreach (Robot robot in (new Robot[] { attackRobot, agilityRobot, tankRobot }))
        {
            _robots.Add(robot.GetRobotID(), robot);
            robot.gameObject.SetActive(false);
            robot.SetColliderProperties();
        }

        _currentRobot = attackRobot;
        _currentRobot.gameObject.SetActive(true);

        _groundChecker.SetGroundCheck(_currentRobot.GroundCheck);
    }