Esempio n. 1
0
 private void Awake()
 {
     sticky       = GetComponent <StickToSurface>();
     jelly        = GetComponent <JellySprite>();
     UpVector     = Vector2.Perpendicular(ForwardMovementDirection);
     trigger      = GetComponent <CircleCollider2D>();
     PauseActions = false;
 }
Esempio n. 2
0
    private void Awake()
    {
        walker    = body.GetComponent <Walker>();
        jumper    = body.GetComponent <Jumper>();
        feet      = body.GetComponent <Feet>();
        propeller = body.GetComponent <Propeller>();
        stick     = body.GetComponent <StickToSurface>();

        playerGO = GameObject.FindWithTag(followTag);
    }
Esempio n. 3
0
    private void Awake()
    {
        walker  = body.GetComponent <Walker>();
        jumper  = body.GetComponent <Jumper>();
        spinner = body.GetComponent <Spinner>();
        feet    = body.GetComponent <Feet>();
        stick   = body.GetComponent <StickToSurface>();

        GameObject playerGO = GameObject.FindWithTag(followTag);

        if (playerGO != null)
        {
            player = playerGO.GetComponentInChildren <Pilot>(true);
        }
    }