Пример #1
0
    private void Awake()
    {
        var onClick   = GetComponent <OnClick>();
        var connector = LevelCommon.FindLevelCommonComponent <Connector>();

        if (onClick && connector)
        {
            onClick.onMouseClick.AddListener(connector.BeginConnect);
        }
    }
Пример #2
0
 private void Awake()
 {
     manager = LevelCommon.FindLevelCommonComponent <ParticleManager>();
 }
Пример #3
0
 void Awake()
 {
     boxCollider = GetComponent <BoxCollider2D>();
     manager     = LevelCommon.FindLevelCommonComponent <ParticleManager>();
 }
Пример #4
0
 void Awake()
 {
     collect = LevelCommon.FindLevelCommonComponent <Collect <T> >();
 }
Пример #5
0
 void Awake()
 {
     particleSpawner = LevelCommon.FindLevelCommonComponent <ParticleSpawner>();
 }
Пример #6
0
 public override IEnumerator Main()
 {
     LevelCommon.FindLevelCommonComponent <EatParticle>().EatingValue.AddListener(CheckRate);
     yield break;
 }