public override IConnection CreateConnection() { ChainConnection newConn = new ChainConnection().SetProgram(ParentProgram) as ChainConnection; newConn.Init(); return(newConn); }
// Use this for initialization void Start() { collisionComponent = GetComponent <CharacterCollision> (); rb = GetComponent <Rigidbody2D> (); enemyKillComponent = GetComponent <EnemyKilling> (); chainConnectionComponent = GetComponent <ChainConnection> (); }
// Use this for initialization void Start() { chainConnectionComponent = mainCharacter.GetComponent <ChainConnection>(); buttonLeft = Screen.width * 0.17f; buttonRight = Screen.width * 0.25f; buttonUp = Screen.height * 0.30f; buttonDown = Screen.height * 0.15f; }
// Use this for initialization void Start() { mainCharacter = GetComponent <Transform>(); mainCharacterRB = GetComponent <Rigidbody2D>(); mainCharacterChainConnection = mainCharacterRB.GetComponent <ChainConnection>(); groundColliderComponent = mainCharacter.GetComponentInChildren <GroundCollider>(); runComponent = GetComponent <Run>(); moveAlongRopeComponent = GetComponent <MoveAlongRope>(); FreezeClimbingBothDirections = false; FreezeRunningBothDirections = false; }
// Use this for initialization void Start() { chainConnectionComponent = GetComponent <ChainConnection>(); tugComponent = GetComponent <Tug>(); rigidbodyComponent = GetComponent <Rigidbody2D>(); groundColliderComponent = GetComponentInChildren <GroundCollider>(); buttonLeftF = swingForwardButton.GetComponent <MoveForward>().ButtonLeft; buttonRightF = swingForwardButton.GetComponent <MoveForward>().ButtonRight; buttonUpF = swingForwardButton.GetComponent <MoveForward>().ButtonUp; buttonDownF = swingForwardButton.GetComponent <MoveForward>().ButtonDown; buttonLeftB = swingBackButton.GetComponent <MoveBack>().ButtonLeft; buttonRightB = swingBackButton.GetComponent <MoveBack>().ButtonRight; buttonUpB = swingBackButton.GetComponent <MoveBack>().ButtonUp; buttonDownB = swingBackButton.GetComponent <MoveBack>().ButtonDown; }
// Use this for initialization void Start() { mainCharacterChainConnection = mainCharacterRB.GetComponent <ChainConnection> (); characterAnimations = mainCharacterRB.GetComponent <HandleAnimations>(); }
// Use this for initialization void Start() { chainConnectionComponent = mainCharacter.GetComponent <ChainConnection>(); }
// Use this for initialization void Start() { characterAnimations = GetComponent <HandleAnimations>(); chainConnectionComponent = GetComponent <ChainConnection>(); }