예제 #1
0
파일: Unit.cs 프로젝트: Cobalte/Tactics
    //----------------------------------------------------------------------------------------------
    private void Start()
    {
        if (UnitData == null)
        {
            throw new Exception("Unit '" + gameObject.name + "' tried to Start() with no unit data.");
        }

        UnitRoster.RegisterUnit(this);
        Body = new UnitBody();
        Body.Initialize(this);
    }