Пример #1
0
    private CircleCollider2D cc;                                                        // CACHED CIRCLE COLLIDER 2D

    void Awake()
    {
        Instance = this;

        this.tr = this.GetComponent <Transform>();

        this.rb = this.GetComponent <Rigidbody2D>();

        this.cc = this.GetComponent <CircleCollider2D>();
    }
Пример #2
0
    void Awake()
    {
        Instance 	= this;

        this.tr 	= this.GetComponent<Transform>();

        this.rb 	= this.GetComponent<Rigidbody2D>();

        this.cc		= this.GetComponent<CircleCollider2D>();
    }