예제 #1
0
파일: Shake.cs 프로젝트: Rirols/Nebessa
    void Awake()
    {
        _repulsion = GameObject.FindGameObjectWithTag("Player").GetComponent<Repulsion>();
        _animator = GetComponent<Animator>();

        _repulsion.Repulsing += SetTrue;
    }
예제 #2
0
    void Awake()
    {
        _repulsion = GameObject.FindGameObjectWithTag("Player").GetComponent<Repulsion>();
        _rend = GetComponent<SpriteRenderer>();

        _repulsion.Repulsing += SetAlpha;
    }
예제 #3
0
    void Awake()
    {
        _audioSource = GetComponent<AudioSource>();
        _repulsion = transform.parent.GetComponent<Repulsion>();

        _repulsion.Repulsing += PlaySound;
    }
예제 #4
0
    void Awake()
    {
        _repulsion = transform.parent.GetComponent<Repulsion>();

        _repulsion.Loading += PlaySound;
        _repulsion.Repulsing += StopSound;
    }
예제 #5
0
    void Awake()
    {
        _children = new List<Element>();
        _transform = transform;
        _repulsion = GetComponent<Repulsion>();
        _attraction = GetComponent<Attraction>();
        _elementsContainer = GameObject.FindGameObjectWithTag("GameManager").GetComponent<ElementsContainer>();

        _repulsion.Repulsing += Repulsing;
    }
예제 #6
0
파일: Replace.cs 프로젝트: Rirols/Nebessa
    void Awake()
    {
        _transform = transform;
        _collision = GetComponent<CollisionWithPlayer>();
        _repulsion = GameObject.FindGameObjectWithTag("Player").GetComponent<Repulsion>();

        _collision.AddChild += AddChild;

        enabled = false;
    }
예제 #7
0
    void Awake()
    {
        _repulsion = transform.parent.GetComponent<Repulsion>();
        _transform = GetComponent<Transform>();

        _scaleMax = _transform.localScale;
        _timer = 0F;

        _repulsion.Loading += Loading;
        _repulsion.Waiting += Waiting;
    }
예제 #8
0
 public void Awake()
 {
     repulsion = new Repulsion(transform, this);
 }