protected override void onStart() { animations = controller.Animation; Gestures = GestureHandler.Instance; capsuleCol = GetComponent <CapsuleCollider>(); mainCam = Camera.main; if (joystick == null) { joystick = FindObjectOfType <MovementJoystick>(); } joystick.MaxThreshold = walkRunThreshold; if (planetParent != null) { planets = new GameObject[planetParent.childCount]; for (int i = 0; i < planets.Length; i++) { planets[i] = planetParent.GetChild(i).gameObject; } } allCentersOfMass = FindObjectsOfType <CenterOfMass>(); defaultGravityStrength = gravStrength; //print(GameDataSaveSystem.Instance.lastAtomSpawnTimestamp); PogoTargetManager.Instance.SetActive(false); }
// Start is called before the first frame update void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <MovementJoystick>(); right = transform.GetChild(0).gameObject.GetComponent <Image>(); left = transform.GetChild(1).gameObject.GetComponent <Image>(); }
private void Start() { joystick = GameManager.Instance.movementJoystick; StartCoroutine(SyncWithHexapod()); }