Esempio n. 1
0
 // Start is called before the first frame update
 void Start()
 {
     image              = this.GetComponent <Image>();
     scale              = this.transform.localScale;
     contollerobject    = GameObject.FindGameObjectWithTag("GameGontrolManager");
     gamecontrolmanager = contollerobject.GetComponent <GameControlManager>();
     original_color     = image.color;
 }
Esempio n. 2
0
    // Start is called before the first frame update
    void Start()
    {
        image = GetComponent <Image>();

        //
        contollerobject    = GameObject.FindGameObjectWithTag("GameGontrolManager");
        gamecontrolmanager = contollerobject.GetComponent <GameControlManager>();
    }
Esempio n. 3
0
    // Start is called before the first frame update
    void Start()
    {
        contollerobject    = GameObject.FindGameObjectWithTag("GameGontrolManager");
        gamecontrolmanager = contollerobject.GetComponent <GameControlManager>();

        criSource = this.GetComponent <CriAtomSource>();
        //SoundPlay();
    }
Esempio n. 4
0
	// Use this for initialization
	void Start () {
        GCM = GameObject.FindGameObjectWithTag("GameControlManager").GetComponent<GameControlManager>();
        if (Player1)
            direction = 1;

        if (!Player1)
            direction = -1;
	}
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     jumpOffset     = transform.position.x + jumpDistance;
     slowingSpeed   = underWaterSpeed;
     emergeLocation = transform.position.x;
     swimAnimations = gameObject.GetComponent <SwimAnimations>();
     graphic        = transform.GetChild(0).gameObject.GetComponent <SpriteRenderer>();
     graphic2       = transform.GetChild(1).gameObject.GetComponent <SpriteRenderer>();
     GCM            = GameObject.Find("GameManager").GetComponent <GameControlManager>();
 }
Esempio n. 6
0
    void Awake()
    {
        finished = false;

        if (instance != null && instance != this)
        {
            Destroy(this.gameObject);
            return;
        }
        else
        {
            instance = this;
        }
        DontDestroyOnLoad(this.gameObject);
    }
Esempio n. 7
0
 // Use this for initialization
 void Start()
 {
     GCM = GameObject.Find("GameManager").GetComponent <GameControlManager>();
 }
Esempio n. 8
0
 public void SetManager(GameControlManager managerInstance)
 {
     gameControlManager = managerInstance;
 }
Esempio n. 9
0
 protected virtual void Awake()
 {
     instance = this;
 }