예제 #1
0
    // Update is called once per frame
    void Update()
    {
        //gets the max left and right invaders
        maxLeftInvader  = invMove.getMaxLeftInvader();
        maxRightInvader = invMove.getMaxRightInvader();

        //if they both still exist, mvoe
        if (maxLeftInvader != null && maxRightInvader != null)
        {
            movement();
        }
    }