public GridTileOccupant(GameObject obj) { this.obj = obj; rotation = Quaternion.identity; scale = Vector3.one; this.windEffectController = obj.GetComponent <WindEffectController>(); }
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; }
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); }