Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     //Set animator
     animator = GetComponent <Animator>();
     //Set SFX
     SFX = FindObjectOfType <SFX_Script>();
 }
 void Awake()
 {
     //Set the player on starting position
     transform.position = GameObject.Find("Start").transform.position;
     //Set Animator
     anim = GetComponent <Animator>();
     //Set SFX
     SFX = FindObjectOfType <SFX_Script>();
 }