Exemplo n.º 1
0
    private void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
        }
        else
        {
            Destroy(gameObject);
        }

        _rumbler        = GetComponent <Rumbler>();
        AnimationHelper = GetComponent <AnimationHelper>();

        _skeletonAnimation = GetComponentInChildren <SkeletonAnimation>();
    }