Exemplo n.º 1
0
    //public ScoreScript scoreScript;

    // Start is called before the first frame update
    void Start()
    {
        if (cc = null)
        {
            CCObject = GameObject.FindGameObjectWithTag("4");
        }

        //speed = 5;
        CCBody = GetComponent <Rigidbody2D>();
    }
Exemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        if (fm = null)
        {
            CMissileObject = GameObject.FindGameObjectWithTag("3");
        }

        //speed = 5;
        activated       = false;
        RespawnRotation = transform.rotation;
        RespawnPosition = transform.position;
        CMissileBody    = GetComponent <Rigidbody2D>();
        angularspeed    = 2;
    }