예제 #1
0
 // Use this for initialization
 void Start()
 {
     ResetEditor();
     GetFocusPart(1);
     InitializePartButtons();
     InitializeAssetModuleArray();
     current = this;
 }
예제 #2
0
    void Step7()
    {
        MissleEditor e = Game.game.editor;

        e.ForcePlacePart(e.currentParts[0], new Vector3(0, -0.5f), 0);
        e.ForcePlacePart(e.currentParts[1], new Vector3(0, -1f), 0);
        e.ForcePlacePart(e.currentParts[2], new Vector3(0, -1.5f), 0);
        e.ForcePlacePart(e.currentParts[3], new Vector3(0.5f, -1.5f), 1);
        e.ForcePlacePart(e.currentParts[3], new Vector3(-0.5f, -1.5f), 1);
        e.ForcePlacePart(e.currentParts[0], new Vector3(0f, 0.5f), 2);
        Game.game.editor.canBuild = true;
    }