Exemplo n.º 1
0
    private void Awake()
    {
        if (instance != null)
        {
            return;
        }

        instance = this;
    }
Exemplo n.º 2
0
	void Start()
	{
		if (gameSceneManager == null)
			gameSceneManager = ((GameObject)GameObject.Find("InGameSceneManager")).GetComponent<InGameSceneManager>();
	}
 // Use this for initialization
 void Start()
 {
     rigidbody            = GetComponent <Rigidbody2D>();
     inGameSceneManager   = GameObject.Find("InGameSceneManager").GetComponent <InGameSceneManager>();
     projectileController = GameObject.Find("ProjectileController").GetComponent <ProjectileController>();
 }
Exemplo n.º 4
0
    InGameSceneManager inGameSceneManager;      // 인게임씬 매니저

    private void Start()
    {
        // 인게임씬 매니저 캐싱
        inGameSceneManager = GameManager.Instance.GetCurrentSceneManager <InGameSceneManager>();
    }