public void Create(Transform transform, float rad, FOWSystem.LOSChecks typ = FOWSystem.LOSChecks.EveryUpdate, bool _onlygrass = false) { this.mTrans = transform; this.onlygrass = _onlygrass; if (!_onlygrass) { this.range.y = rad; this.range.x = 2f; this.lineOfSightCheck = typ; this.mRevealer = FOWSystem.CreateRevealer(typ); this.mRevealer.outer = rad; this.mRevealer.los = typ; this.mRevealer.pos = transform.position; this.mRevealer.prvpos = this.mRevealer.pos; this.mRevealer.isActive = true; this.isActive = true; } this.unit = transform.gameObject.GetComponent <Units>(); }
void Awake() { mTrans = transform; mRevealer = FOWSystem.CreateRevealer(); }
protected virtual void Start() { mTrans = transform; mRevealer = FOWSystem.CreateRevealer(); }