private void Start() { EnemyPath ep = FindObjectOfType <EnemyPath>(); if (ep) { patrolPaths = ep.GetPaths(); } EnemyPathLineUp eplu = FindObjectOfType <EnemyPathLineUp>(); if (eplu) { lineUpPath = eplu.GetPaths(); } }
private void Start() { EnemyPath ep = FindObjectOfType <EnemyPath>(); if (ep) { patrolPaths = ep.GetPaths(); } EnemyPathLineUp eplu = FindObjectOfType <EnemyPathLineUp>(); if (eplu) { lineUpPath = eplu.GetPaths(); } }