Key.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
    void Start()
    {
        //This will need tochange if character size is modified
        position = new Vector2(0, 1.3f);
        myCollider = this.GetComponent<Collider2D>();
    }

Usage Example

Exemplo n.º 1
0
        public void SetUp()
        {
            gameObject = new GameObject();

            key = gameObject.AddComponent <Key>();
            gameObject.AddComponent <BoxCollider2D>();
            key.Start();

            keyRecorder = gameObject.AddComponent <KeyRecorder>();
            keyRecorder.Start();
        }
All Usage Examples Of Key::Start