Пример #1
0
    private void Start()
    {
        PetAnim.StartBreath();

        Utils.InvokeDelayed(() =>
        {
            PetAnim.Jump();
        }, 1f);
    }
Пример #2
0
    private void Awake()
    {
        Instance = this;
        PAnim    = new PetAnim(Player.transform);
        EAnim    = new PetAnim(Enemy.transform);
        var pv = new PlayerView(PAnim);

        PAnim.View = pv;
        var ev = new PlayerView(EAnim);

        EAnim.View = ev;
        PAnim.StartBreath();
        EAnim.StartBreath();
    }