Suddenly the multi-site setup just cannot connect to both wp-admin or the second site due to redirect loop issue. the solution for the issue is: logging into phpmyadmin and went…
Step 1 First, create a few important variable in php. --------- Primary variables ------------ $totallist how many listing in total $totallist = count($ListsToDisplay); $limit How many listing per page ---------…
Event is a special kind of delegate: Step 1: declare an delegate: public delegate void ClickAction(); Step 2: Setup the event public static event ClickAction OnClicked; Step 3: Create the…
Concept is to use leap motion, when both hands are stretched out, the character is moving forward and when both hand retrieve backward, the character will move backwards. the direction…
The easier solution will be creating two colliders. the first collider sense the player and tell the second collider the direction is sensed. the first collider code: using UnityEngine; using…
there are two way to control object movement: By directly manipulating the transform of a object using UnityEngine; using System.Collections; public class movementControl : MonoBehaviour { public float moveSpeed =…
When player enters a collision area for a few seconds, a warning popup will appear. We create a timer called elapsedTime, using OnTriggerStay to start timer and OntriggerExit to reset…