コード例 #1
0
        private RotateTable GetDebugRotateTable()
        {
            GameObject  rotateTable          = new GameObject("RotateTable");
            RotateTable rotateTableComponent = rotateTable.AddComponent <RotateTable>();

            return(rotateTableComponent);
        }
コード例 #2
0
        protected override void OnInitialize()
        {
            base.OnInitialize();
            RotateTable rotateTable = GetDebugRotateTable();

            Turret turret = GetDebugRoundTurret();

            RegisterTurretController(turret.GetController());

            rotateTable.GetEquipmentsHolder().AddEquipment(turret, Vector3.zero);
            GetEquipmentsHolder().AddEquipment(rotateTable, Vector3.zero);
        }