예제 #1
0
        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);
        }
예제 #2
0
 // 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>();
 }
예제 #3
0
    private void Start()
    {
        joystick = GameManager.Instance.movementJoystick;

        StartCoroutine(SyncWithHexapod());
    }