void Awake() { myBody = GetComponent <Rigidbody2D>(); GameMasterGo = GameObject.Find("GameMaster"); GuiManager = GameMasterGo.GetComponent <guiManager>(); GameSettings = GameMasterGo.GetComponent <game_settings>(); GameObjectHandler = GameMasterGo.GetComponent <GameObject_handler>(); }
void Awake() { GameMasterGo = GameObject.Find("GameMaster"); myBody = GetComponent <Rigidbody2D>(); GameSettings = GameMasterGo.GetComponent <game_settings>(); myHealth = GetComponent <health>(); myAttributes = GetComponent <attributes>(); }
public void onMinigameAwake(game_settings settings) { this._settings = settings; // Setup this._uiTitleMesh.text = settings.title; this._clockSprite.color = new Color(0.94f, 0.76f, 0.05f); this._clock.startTimer(settings.warmup); }
void Awake() { GameMasterGo = GameObject.Find("GameMaster"); GameSettings = GameMasterGo.GetComponent <game_settings>(); myShadow = transform.GetChild(0).gameObject; }