Пример #1
0
 public virtual bool ChangeAnime(string name)
 {
     if (EqulasAnime(name))
     {
         return(false);
     }
     _sprite.Animation = _ssDatabase.GetAnime(name);
     _sprite.Play();
     return(true);
 }
Пример #2
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKey("up"))
     {
         sprite.Play();
         print("up arrow key is held down");
     }
     if (Input.GetKey("down"))
     {
         sprite.Pause();
         print("down arrow key is held down");
     }
 }