Inheritance: MonoBehaviour
Ejemplo n.º 1
0
 public static MineManager get() {
     if(_instance == null) {
         Logger.Log("MineManager::get was badly initialized", Logger.Level.WARN);
         _instance = GameObject.Find(gameObjectName).GetComponent<MineManager>();
     }
     return _instance;
 }
Ejemplo n.º 2
0
    protected override void Awake()
    {
        base.Awake();

        mineManager = GameController.Instance.MineManager;
        animator    = gameObject.GetComponentInChildren <Animator>();

        DepositAction = (x) => { MyArea.DepositContainer.AddToContainer(x); };
    }
Ejemplo n.º 3
0
    private void Awake()
    {
        coroutineRunner     = Instantiate(coroutineRunnerPrefab).GetComponent <ICoroutineRunner>();
        pointsManagerScript = pointsManager.GetComponent <PointsManager>();
        uiManagerScript     = uiManager.GetComponent <UIManager>();
        gameManagerScript   = gameManager.GetComponent <GameManager>();
        mineManagerScript   = mineManager.GetComponent <MineManager>();

        pointsManagerScript.Initialize(pointsToEarn, uiManagerScript, coroutineRunner);
        gameManagerScript.Initialize(pointsManagerScript);
        mineManagerScript.Initialize(pointsManagerScript);
    }
Ejemplo n.º 4
0
 void Awake()
 {
     Logger.Log("MineManager::Awake", Logger.Level.DEBUG);
     _instance = this;
 }
Ejemplo n.º 5
0
 void Awake()
 {
     Logger.Log("MineManager::Awake", Logger.Level.DEBUG);
     _instance = this;
 }