コード例 #1
0
ファイル: ExitZoneController.cs プロジェクト: Miceroy/GGJ2016
    // 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);
    }
コード例 #2
0
ファイル: ItemSlotController.cs プロジェクト: Miceroy/GGJ2016
    // 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);
    }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     gameController = GameObject.Find("!GameController").GetComponent<GameSceneController>();
     bb = GameObject.Find("Main Camera").GetComponentInChildren<BallBehavior>();
     audioController = GameObject.Find("AudioController");
 }
コード例 #4
0
 private void Awake()
 {
     _sceneController = GameSceneController.Instance;
 }
コード例 #5
0
 /// <summary>
 ///     필요한 오브젝트들 설정;
 /// </summary>
 /// <returns></returns>
 public void GetObjects()
 {
     _sceneController = GameSceneController.Instance;
 }
コード例 #6
0
 void Start()
 {
     my     = GameSceneController.GetInstance();
     action = GameSceneController.GetInstance() as IUserActions;
 }
コード例 #7
0
 private void Start()
 {
     gameSceneController = GameObject.Find("GameSceneController").GetComponent <GameSceneController>();
     registerOnGrid();
 }
コード例 #8
0
 private void Awake()
 {
     _gameSceneController = FindObjectOfType <GameSceneController>();
 }
コード例 #9
0
 private void Start()
 {
     gameSceneController = FindObjectOfType <GameSceneController>();
     gameSceneController.UpdateToKill += GameSceneController_UpdateToKill;
 }
コード例 #10
0
 void Start()
 {
     my    = GameSceneController.GetInstance();
     act   = GameSceneController.GetInstance() as IUserAction;
     state = GameSceneController.GetInstance() as Judgement;
 }
コード例 #11
0
 private void Die()
 {
     Recycle();
     GameSceneController.OnEnemyDeath(identifierName);
 }
コード例 #12
0
 public Gamemode(GameSceneController parent, GamemodeType type)
 {
     gameSceneController = parent;
     gamemodeType        = type;
 }
コード例 #13
0
ファイル: GamePlayer.cs プロジェクト: shimdh/dice-shadow
    // Use this for initialization
    private void Start()
    {
        _sceneController = GameSceneController.Instance;
        CurrentNum = 0;

        Cards = new GameCard[CardTotal];
        InitCards();
        InitHealthTotal();
    }
コード例 #14
0
 private void Awake()
 {
     sceneController = GameSceneController.Instance;
 }
コード例 #15
0
ファイル: GenGameObject.cs プロジェクト: Xiongzj5/Unity3D
 void Start()
 {
     GameSceneController.GetInstance().setGenGameObject(this);
     loadSrc();
 }
コード例 #16
0
    void Start()
    {
        GameSceneController my = GameSceneController.GetInstance();

        my.setBaseCode(this);
    }
コード例 #17
0
 void Awake()
 {
     GameSceneController = GameSceneController.FindObjectOfType <GameSceneController> ();
 }
コード例 #18
0
 private void Start()
 {
     my     = GameSceneController.GetInstance();
     action = GameSceneController.GetInstance() as IUact;
 }
コード例 #19
0
ファイル: LevelPortal.cs プロジェクト: hrodruck/digsnake
 private void Start()
 {
     gameSceneController = FindObjectOfType <GameSceneController>();
 }
コード例 #20
0
ファイル: Controller.cs プロジェクト: MockingT/3D_Game-3
 void Start()
 {
     GameSceneController my = GameSceneController.GetInstance();
 }
コード例 #21
0
 private void Start()
 {
     gameSceneController = FindObjectOfType <GameSceneController>();
     head = transform.parent.gameObject.GetComponent <PlayerController>();
 }
コード例 #22
0
ファイル: UserInterface.cs プロジェクト: Kuihan/homework3
 void Start()
 {
     scene  = GameSceneController.GetInstance();
     state  = GameSceneController.GetInstance() as IQueryGameStatus;
     action = GameSceneController.GetInstance() as IUserActions;
 }
コード例 #23
0
 /// <summary>
 ///     게임 종료시에 호출;
 /// </summary>
 public void OnApplicationQuit()
 {
     _instance = null;
 }
コード例 #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();
        }
    }
コード例 #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);
     }
 }
コード例 #26
0
 // Use this for initialization
 private void Start()
 {
     _sceneController = GameSceneController.Instance;
 }
コード例 #27
0
 void Start()
 {
     my = GameSceneController.GetInstance();
     my.setGenGameObject(this);
     Screen();
 }
コード例 #28
0
 // Use this for initialization
 void Start()
 {
     gameController = GameObject.Find("!GameController").GetComponent<GameSceneController>();
 }
コード例 #29
0
 public DioramaSetupInputState(GameSceneController controller)
 {
     this.controller = controller;
 }
コード例 #30
0
 // 游戏开始时
 private void Start()
 {
     my = GameSceneController.GetInstance();
     my.setGenGameObject(this);
     LoadSrc();
 }
コード例 #31
0
 void Start()
 {
     gameSceneController = GameSceneController.getInstance();
     gameSceneController.setGameModels(this);
 }