Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
       // m_picked = false;
        enteredGO = gameObject.transform.FindChild("Entered").gameObject;
        leavedGO = gameObject.transform.FindChild("Leaved").gameObject;
        sceneController = GameObject.FindGameObjectWithTag("GameController").GetComponent<GameSceneController>();

        updateVisuals(false);
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        m_initialPosition = transform.localPosition;

        TextMesh pickupText = gameObject.transform.FindChild("Entered/Pickup/PickupText").GetComponent<TextMesh>();
        pickupText.text = "Use " + m_requiredTriggerItemId.ToString() + "\nhere";
        enteredGO = gameObject.transform.FindChild("Entered").gameObject;
        leavedGO = gameObject.transform.FindChild("Leaved").gameObject;
        sceneController = GameObject.FindGameObjectWithTag("GameController").GetComponent<GameSceneController>();
        updateActiveObjects(false);
    //    updateVisuals(false);
    }
 // Use this for initialization
 void Start()
 {
     gameController = GameObject.Find("!GameController").GetComponent<GameSceneController>();
     bb = GameObject.Find("Main Camera").GetComponentInChildren<BallBehavior>();
     audioController = GameObject.Find("AudioController");
 }
Exemplo n.º 4
0
 private void Awake()
 {
     _sceneController = GameSceneController.Instance;
 }
Exemplo n.º 5
0
 /// <summary>
 ///     필요한 오브젝트들 설정;
 /// </summary>
 /// <returns></returns>
 public void GetObjects()
 {
     _sceneController = GameSceneController.Instance;
 }
Exemplo n.º 6
0
 void Start()
 {
     my     = GameSceneController.GetInstance();
     action = GameSceneController.GetInstance() as IUserActions;
 }
Exemplo n.º 7
0
 private void Start()
 {
     gameSceneController = GameObject.Find("GameSceneController").GetComponent <GameSceneController>();
     registerOnGrid();
 }
 private void Awake()
 {
     _gameSceneController = FindObjectOfType <GameSceneController>();
 }
Exemplo n.º 9
0
 private void Start()
 {
     gameSceneController = FindObjectOfType <GameSceneController>();
     gameSceneController.UpdateToKill += GameSceneController_UpdateToKill;
 }
Exemplo n.º 10
0
 void Start()
 {
     my    = GameSceneController.GetInstance();
     act   = GameSceneController.GetInstance() as IUserAction;
     state = GameSceneController.GetInstance() as Judgement;
 }
Exemplo n.º 11
0
 private void Die()
 {
     Recycle();
     GameSceneController.OnEnemyDeath(identifierName);
 }
Exemplo n.º 12
0
 public Gamemode(GameSceneController parent, GamemodeType type)
 {
     gameSceneController = parent;
     gamemodeType        = type;
 }
Exemplo n.º 13
0
    // Use this for initialization
    private void Start()
    {
        _sceneController = GameSceneController.Instance;
        CurrentNum = 0;

        Cards = new GameCard[CardTotal];
        InitCards();
        InitHealthTotal();
    }
Exemplo n.º 14
0
 private void Awake()
 {
     sceneController = GameSceneController.Instance;
 }
Exemplo n.º 15
0
 void Start()
 {
     GameSceneController.GetInstance().setGenGameObject(this);
     loadSrc();
 }
Exemplo n.º 16
0
    void Start()
    {
        GameSceneController my = GameSceneController.GetInstance();

        my.setBaseCode(this);
    }
Exemplo n.º 17
0
 void Awake()
 {
     GameSceneController = GameSceneController.FindObjectOfType <GameSceneController> ();
 }
Exemplo n.º 18
0
 private void Start()
 {
     my     = GameSceneController.GetInstance();
     action = GameSceneController.GetInstance() as IUact;
 }
Exemplo n.º 19
0
 private void Start()
 {
     gameSceneController = FindObjectOfType <GameSceneController>();
 }
Exemplo n.º 20
0
 void Start()
 {
     GameSceneController my = GameSceneController.GetInstance();
 }
Exemplo n.º 21
0
 private void Start()
 {
     gameSceneController = FindObjectOfType <GameSceneController>();
     head = transform.parent.gameObject.GetComponent <PlayerController>();
 }
Exemplo n.º 22
0
 void Start()
 {
     scene  = GameSceneController.GetInstance();
     state  = GameSceneController.GetInstance() as IQueryGameStatus;
     action = GameSceneController.GetInstance() as IUserActions;
 }
Exemplo n.º 23
0
 /// <summary>
 ///     게임 종료시에 호출;
 /// </summary>
 public void OnApplicationQuit()
 {
     _instance = null;
 }
Exemplo n.º 24
0
    /// <summary>
    ///     각 플레이어 주사위 수를 생성;
    /// </summary>
    /// <returns></returns>
    public void BattleRoll()
    {
        if (_sceneController == null)
        {
            _sceneController = GameSceneController.Instance;
        }

        Debug.Log("BattleRoll");
        for (var i = 0; i < 2; i++)
        {
            _sceneController.BattleManager.BattleDices[i].RollDices();
        }
    }
Exemplo n.º 25
0
 private void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else if (_instance != this)
     {
         Debug.LogWarning("A singleton already exist! Destroying new one.");
         Destroy(this);
     }
 }
Exemplo n.º 26
0
 // Use this for initialization
 private void Start()
 {
     _sceneController = GameSceneController.Instance;
 }
Exemplo n.º 27
0
 void Start()
 {
     my = GameSceneController.GetInstance();
     my.setGenGameObject(this);
     Screen();
 }
 // Use this for initialization
 void Start()
 {
     gameController = GameObject.Find("!GameController").GetComponent<GameSceneController>();
 }
Exemplo n.º 29
0
 public DioramaSetupInputState(GameSceneController controller)
 {
     this.controller = controller;
 }
Exemplo n.º 30
0
 // 游戏开始时
 private void Start()
 {
     my = GameSceneController.GetInstance();
     my.setGenGameObject(this);
     LoadSrc();
 }
Exemplo n.º 31
0
 void Start()
 {
     gameSceneController = GameSceneController.getInstance();
     gameSceneController.setGameModels(this);
 }