コード例 #1
0
 // Use this for initialization
 void Start()
 {
     sfxPlayer = GetComponent <PlayerSoundTriggers>();
     if (!DisableVisionFeatures)
     {
         UpdateVisibility();
     }
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     //rg = GetComponent<Rigidbody2D>();
     rend     = GetComponent <Renderer>();
     c        = rend.material.color;
     immunity = false;
     //lifePoints = 3;
     recoveryTime = 3;
     sfxPlayer    = GetComponent <PlayerSoundTriggers>();
     lifePoints   = HitPoints;
 }