コード例 #1
0
ファイル: FOWRevealer.cs プロジェクト: whztt07/mobahero_src
 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>();
 }
コード例 #2
0
 void Awake()
 {
     mTrans    = transform;
     mRevealer = FOWSystem.CreateRevealer();
 }
コード例 #3
0
 protected virtual void Start()
 {
     mTrans    = transform;
     mRevealer = FOWSystem.CreateRevealer();
 }