Exemplo n.º 1
0
 public GridTileOccupant(GameObject obj)
 {
     this.obj = obj;
     rotation = Quaternion.identity;
     scale    = Vector3.one;
     this.windEffectController = obj.GetComponent <WindEffectController>();
 }
Exemplo n.º 2
0
 public GridTileOccupant(GameObject obj, Vector3 position, Quaternion rotation, Vector3 scale, OccupantType type)
 {
     this.obj                  = obj;
     this.position             = position;
     this.rotation             = rotation;
     this.scale                = scale;
     this.terrainObject        = obj.GetComponent <TerrainObject>();
     this.windEffectController = obj.GetComponent <WindEffectController>();
     this.type                 = type;
 }
Exemplo n.º 3
0
    void Start()
    {
        _windEffectController = windDirection.GetComponent <WindEffectController>();
        _players      = GameObject.FindGameObjectsWithTag("Player");
        _tutorialBall = GameObject.FindGameObjectWithTag("TrainingBall");
        enabled       = false;
        gameObject.SetActive(false);
        OnDirectionChosen   += GlobalWindController_OnDirectionChosen;
        OnGlobalWindExpired += GlobalWindController_OnGlobalWindExpired;

        _windEffectController.SetEnabled(false);
        _windEffectController.SetIndicatorEnabled(false);
    }