Пример #1
0
 private void Start()
 {
     particlePlayer     = GameObject.FindGameObjectWithTag("ParticlePlayer").transform;
     particle           = transform.GetChild(0).gameObject;
     orb                = transform.GetChild(0).GetComponent <OrbitGenerator>();
     particlePath       = transform.GetChild(0).GetComponent <particleFollowPath>();
     particleNewPos     = new Vector3(0.1f, 0, 0);
     particleInicialPos = FindObjectOfType <CharacterController>().transform.GetChild(0);
     // player = FindObjectOfType<CharacterController>();
 }
 // Start is called before the first frame update
 void Start()
 {
     pPath = GetComponent <particleFollowPath>();
     //SetOrbitValues();
 }