private void Start() { gs = GameObject.FindGameObjectWithTag("GodObject").GetComponent <GodScript>(); sr = gameObject.GetComponent <SpriteRenderer>(); GetLevel(); }
void Start() { CreateReticleVertices(); m_gs = FindObjectOfType <GodScript>() as GodScript; materialComp = gameObject.GetComponent <Renderer>().material; }
void Start() { p1 = ReInput.players.GetPlayer(0); p2 = ReInput.players.GetPlayer(1); p3 = ReInput.players.GetPlayer(2); p4 = ReInput.players.GetPlayer(3); CM = Cursor.GetComponent <CursorMovement>(); God = GameObject.Find("God").GetComponent <GodScript>(); }
void Start() { m_audio = GetComponent <AudioSource>(); m_rigid = GetComponent <Rigidbody>(); // get the God Script for accessing the powerCounter GameObject go = GameObject.Find("Main Camera"); god = (GodScript)go.GetComponent(typeof(GodScript)); }
void Start() { _player = ReInput.players.GetPlayer(playerID); TextObject = this.gameObject; curChar = SelectableCharacters.None; WS = weaponSelect.GetComponent <WeaponSelect>(); God = GameObject.Find("God").GetComponent <GodScript>(); CD = GameObject.Find("CenterDiamond"); ND = GameObject.Find("NorthDiamond"); NED = GameObject.Find("NorthEastDiamond"); ED = GameObject.Find("EastDiamond"); SED = GameObject.Find("SouthEastDiamond"); SD = GameObject.Find("SouthDiamond"); SWD = GameObject.Find("SouthWestDiamond"); WD = GameObject.Find("WestDiamond"); NWD = GameObject.Find("NorthWestDiamond"); }
void Start() { m_gs = FindObjectOfType <GodScript>() as GodScript; if (Application.platform != RuntimePlatform.Android) { Debug.Log("Speech recognition is only available on Android platform."); return; } if (!SpeechRecognizerManager.IsAvailable()) { Debug.Log("Speech recognition is not available on this device."); return; } // We pass the game object's name that will receive the callback messages. _speechManager = new SpeechRecognizerManager(gameObject.name); }
void OnDestroy() { GodScript.singleton = null; }
void Awake() { GodScript.singleton = this; }
public void DeselectMe() { GodScript gs = FindObjectOfType <GodScript>() as GodScript; gs.DeSelect(); }
public void SelectMe() { GodScript gs = FindObjectOfType <GodScript>() as GodScript; gs.Select(this.gameObject); }