コード例 #1
0
 private void Awake()
 {
     this.moveArrows      = GetComponentsInChildren <MoveArrows>();
     this.grow            = GetComponentInChildren <GrowWipeTail>();
     this.initialPosition = this.transform.position;
     this.effectsPool     = GetComponentInParent <EffectsPool>();
     MarkSelfAsAvailable();
 }
コード例 #2
0
ファイル: GameMaster.cs プロジェクト: tdev69/AMatch3Prototype
 private void Awake()
 {
     this.gridManager   = GetComponent <GridManager>();
     this.matchManager  = GetComponent <MatchManager>();
     this.tokenMovement = GetComponent <TokenMovementManager>();
     this.highlighter   = this.highlight.GetComponent <Highlighter>();
     this.effectsPool   = GetComponent <EffectsPool>();
     this.currentState.SetMainComponentsInAllStates(this, this.gridManager, this.matchManager, this.tokenMovement, this.highlighter, this.effectsPool);
     DOTween.Clear();
 }
コード例 #3
0
 public void SetMainComponents(GameMaster aGameMaster,
                               GridManager aGridManager   = null,
                               MatchManager aMatchManager = null,
                               TokenMovementManager aTokenMovementManager = null,
                               Highlighter aHighlighter  = null,
                               EffectsPool anEffectsPool = null
                               )
 {
     this.theGameMaster = aGameMaster;
     this.gridManager   = aGridManager;
     this.matchManager  = aMatchManager;
     this.tokenMovement = aTokenMovementManager;
     this.highlighter   = aHighlighter;
     this.effectsPool   = anEffectsPool;
 }
コード例 #4
0
 public void SetMainComponentsInAllStates(GameMaster aGameMaster,
                                          GridManager aGridManager   = null,
                                          MatchManager aMatchManager = null,
                                          TokenMovementManager aTokenMovementManager = null,
                                          Highlighter aHighlighter  = null,
                                          EffectsPool anEffectsPool = null
                                          )
 {
     foreach (StateNames state in Enum.GetValues(typeof(StateNames)))
     {
         if (this.statesDictionary.GetState(state) != null)
         {
             SOState aStateInDictionary = this.statesDictionary.GetState(state);
             aStateInDictionary.SetMainComponents(aGameMaster, aGridManager, aMatchManager, aTokenMovementManager, aHighlighter, anEffectsPool);
         }
     }
 }
コード例 #5
0
    // Use this for initialization
    void Awake()
    {
        instace = this;

        Initialize();
    }
コード例 #6
0
    //	Unity methods

    private void Awake()
    {
        body2D      = GetComponent <Rigidbody2D>();
        effectsPool = GameObject.Find("EffectsPool").GetComponent <EffectsPool>();
    }    //	End Unity method Awake
コード例 #7
0
    //	Unity methods

    private void Start()
    {
        mySprite    = gameObject.GetComponentInChildren <SpriteRenderer>();
        effectsPool = GameObject.Find("EffectsPool").GetComponent <EffectsPool>();
    }    //	End Unity method Start