private ShurikenSpawner scriptRef; // needed to destroy shuriken when thrown and goes off level void Start() { rb = GetComponent <Rigidbody>(); enemyOnPlaced = null; scriptRef = GameObject.Find("SpawnShurikenPlace").GetComponent <ShurikenSpawner>(); }
void Start() { rb = GetComponent<Rigidbody>(); enemyOnPlaced = null; scriptRef = GameObject.Find ("SpawnShurikenPlace").GetComponent<ShurikenSpawner>(); }