private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Debug.LogWarning("Instance already exists", this);
         Destroy(this.gameObject);
     }
 }
 private void Start()
 {
     systemValues = CometValuesHolder.instance;
 }
 private void Start()
 {
     systemValues = CometValuesHolder.instance;
     lifeTime     = systemValues.particleLifeTime;
 }
Пример #4
0
 void Start()
 {
     systemValues         = CometValuesHolder.instance;
     transform.localScale = Vector3.one;
 }