示例#1
0
 void Start()
 {
     eff      = GetComponent <RedCoinEffect>();
     rend     = GetComponentInParent <Renderer>();
     player   = GetComponentInParent <PlayerStats>();
     original = rend.material.color;
 }
示例#2
0
 void Start()
 {
     stats     = GAMER.GetComponent <PlayerStats>();
     RedEffect = GetComponent <RedCoinEffect>();
 }