Пример #1
0
    private void Start()
    {
        gs = GameObject.FindGameObjectWithTag("GodObject").GetComponent <GodScript>();
        sr = gameObject.GetComponent <SpriteRenderer>();

        GetLevel();
    }
Пример #2
0
    void Start()
    {
        CreateReticleVertices();

        m_gs = FindObjectOfType <GodScript>() as GodScript;

        materialComp = gameObject.GetComponent <Renderer>().material;
    }
Пример #3
0
 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>();
 }
Пример #4
0
    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));
    }
Пример #5
0
 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");
 }
Пример #6
0
    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);
    }
Пример #7
0
 void OnDestroy()
 {
     GodScript.singleton = null;
 }
Пример #8
0
 void Awake()
 {
     GodScript.singleton = this;
 }
Пример #9
0
    public void DeselectMe()
    {
        GodScript gs = FindObjectOfType <GodScript>() as GodScript;

        gs.DeSelect();
    }
Пример #10
0
    public void SelectMe()
    {
        GodScript gs = FindObjectOfType <GodScript>() as GodScript;

        gs.Select(this.gameObject);
    }
Пример #11
0
 void OnDestroy()
 {
     GodScript.singleton = null;
 }
Пример #12
0
 void Awake()
 {
     GodScript.singleton = this;
 }