private void Start() { ballMove = playerStatuses[1].GetComponent <BallMove>(); planeMove = playerStatuses[2].GetComponent <PlaneMove>(); rockMove = playerStatuses[3].GetComponent <RockMove>(); travellerMove = playerStatuses[0].GetComponent <TravellerMove>(); }
void Start() { gameManager = GameObject.FindGameObjectWithTag("GameManager").GetComponent <GameManager>(); planeMove = GameObject.FindGameObjectWithTag("Player").GetComponent <PlaneMove>(); }