Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: spiralKing on September 06, 2014, 12:04:12 AM

Title: OnMouseDown and OnMouseDrag functions in one playMaker Action Script?
Post by: spiralKing on September 06, 2014, 12:04:12 AM
Would I be right in assuming that, if I wanted to turn a script containing both
void OnMouseDown, void OnMouseDrag  functions into an Action, I would have to split the script into 2 separate Actions
(one for OnMouseDown and one for OnMouseDrag)

e.g.
Code: [Select]
using UnityEngine;
using System.Collections;

public class idea : MonoBehaviour
{

public int counter1 = 0;
public int counter2 = 0;



void OnMouseDown()
{
counter1 += 100;
}


void OnMouseDrag()
{
counter2++;
}

}
I'm not asking how to create an Action, I just want to know if this whole script can go into 1 Action
Title: Re: OnMouseDown and OnMouseDrag functions in one playMaker Action Script?
Post by: spiralKing on September 06, 2014, 09:57:24 PM
Bump