private void Start() { // find Savepoint Selector savepointSelect = GameObject.Find("SavepointSelect").GetComponent <SavepointSelect>(); Debug.Log(savepointSelect); }
private void Start() { // find Savepoint Selector savepointSelect = GameObject.Find("SavepointSelect").GetComponent <SavepointSelect>(); // find all Blue Possessables bluePossessables = GameObject.FindGameObjectsWithTag("Blue Possessable"); Debug.Log(bluePossessables.Length + " Blue Possessables Detected in Scene"); // if the object is set to be possessed on Start, possess it immediately if (possessOnStart) { Possess(); } }