//public void UpdateMulti1Position () { // dizzyBirdObjMulti.rigidbody2D.velocity = new Vector2 (Xspeed, Yspeed); // Debug.Log ("Updating Multi1 position"); //} void Awake () { //PosToSend = new byte[2]; vsListener = new VersusListener(); NotificationCenter.DefaultCenter ().AddObserver (this, "UpdateMulti1Position"); dizzyBirdObj = GameObject.Find ("dizzyOwn"); dizzyBirdObjMulti = GameObject.Find ("dizzyMulti"); dizzyBirdObj.rigidbody2D.gravityScale = 0f; dizzyBirdObjMulti.rigidbody2D.gravityScale = 0f; //dizzyBirdObjMulti.rigidbody2D.velocity = new Vector2 (Xspeed, 0f); }
// Use this for initialization void Start () { vsListener = new VersusListener(); }